package org.hxd.document.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.hxd.pojo.Document;
import org.hxd.units.PageModel;

import java.util.List;

public interface DocumentDao {

    List<Document> findDocument(@Param("document") Document document,@Param("pageModel") PageModel pageModel);
    //查询文档个数
    int findDocumentcount(Document document);

    @Select("select * from document_inf where id = #{id}")
    Document findDocumentByid(Integer id);

    int removeDocument(Integer id);

    //添加文档
    int addDocument(Document document);

    int modifyDocument(Document document);
}
